package com.best.design.factoryMethod.bad;

import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;

/**
 * @author Jiang Akang
 * employeeId: BG435424
 * @date 2021/11/21
 **/
//@Slf4j
//public class PrizeController {
//
//    public AwardRes awardToUser(AwardReq req) {
//        String reqJson = JSON.toJSONString(req);
//        AwardRes awardRes = null;
//        try {
//            log.info("奖品发放开始{}, req:{}", req.getUserId(), reqJson);
//            // 按照不同类型方法商品[1优惠券、2实物商品、3第三方兑换卡(爱奇艺)]
//            if (req.getAwardType() == 1) {
//                CouponService couponService = new CouponService();
//                CouponResult couponResult = couponService.sendCoupon(req.getUserId(), req.getAwardNumber(), req.getBizId());
//                if ("0000".equals(couponResult.get))
//
//            }
//
//        }
//    }
//
//}
